package com.smart.thrift.discoveryandbalance.rule;

import com.smart.thrift.discoveryandbalance.balancer.ILoadBalancer;
import com.smart.thrift.discoveryandbalance.discovery.ThriftServerNode;

public abstract class AbstractLoadBalancerRule implements IRule {

    protected ILoadBalancer<? extends ThriftServerNode> lb;

    @Override
    public void setLoadBalancer(ILoadBalancer<? extends ThriftServerNode> lb) {
        this.lb = lb;
    }

    @Override
    public ILoadBalancer<? extends ThriftServerNode> getLoadBalancer() {
        return lb;
    }
}
